Moved updateIOU to back end.