Rearranging if statement.