Improved indentation and removed unnecessary code