added time and pause function, Pause does not work correctly now :( #31