Moved the state argument to the end of the line where it belongs.