Removed old code
Added pause ui.
Added reset function