Removed redundant ends