Moved everything to Promises. (slows the system down a lot until promises are supported).