Added pause and run buttons and functionality