Slight tweak to Sieve function