Removed printf() and extra else condition