Don't run handler if it doesn't exist..
Run api requests in own thread
Remove debug print