Removed duplicate code
Minor improvement.