Main: Rename function.
Main: Simplify condition.