Simplified getting button 10 if statement.