Added multiple threads and timer and lotterry schedueler