Added more libraries. Thread still not working.