Improve timer emulation
Don't care about candidate structure
Implement query_first
Fix trivial mistake
Update