Move "when" to the end.