Added method to check for method conflicts.