Better thread safety, and a communication mechanism. Not quite working yet though.