waitt is indeed old syntax. You should use wait(-x) to wait x seconds.

I guess conitec got inspired by your code.. sys_record.