Fixed Loads of stuff. Can now run on servers.