Added implementation of tick to simulator