Implemented pausing functionality

Created a custom timer function to allow that pausing