Change function signatures and assigned 'temp' instead of null to request_id