Removed else from if statement as it was not doing anything