Rewrote the interface to the worldsim module.