Small logic optimization.
