Changed sieve from mod -> fmod