Fixed code formatting
Removed level duplication