Added threading, still missing HTTP requests