(Working set for GUI controls)
Refactored in order to export a successful jar.
Fixed thread not pausing.