Rename time to timer, clean priority
Clean code