Removed wormmain and added simplified main