Changed if statement for consistency.