Updated engine for both client and server.