Made sure all the return codes were correct.