Added exit function, testing thread creation [currently broken]