Removed duplicate output statements