Fix os.pullEvent. Needs more work...