refactored, tried to add a thread, currently not working, need to RTFM.