Have fixed the bug... "Premature optimization is the root of all evils."