Added post and pre tick hooks