Add missing end statement

Missed this in my conflict merge
Merge pull request #60 from davekiss/patch-1

Add missing end statement