Make missing return type an error
Add missing return statement
Factor EngineOptions serialization into separate method