Fixed ENDBLK removal (thanks Tom!)