Refactored models, added process_model