Clarified thread safety statement.
Confined remaining functions to main thread.