Added Threading

Created a thread and start/stop methods for the thread.