Removed the dependency on Twisted