Make changes to send_result functions and moved it into the model