Added pause functionality
small fix