Corrected function sendRequestToModel...