Adding pausing and restarting functionality. Minor ui improvements.