Removed extra endif.