Fixed code repetition.