Move isAssisted condition at the end.