Added engine base, added server code from Klotz, which is NOT well written!