Implemented Threads and Handler