Unneeded endif removed