Refactored timing to helper module