Moved within if statement.