Use EM.schedule instead of unnessicary thread

- EM is not threadsafe apparently