Pause, restart and gui implemented.