Added cycle counting to tomato