Tried to implement smart tick system. Still buggy