Fix for execute method allowing semicolons

Ref #120 and #123.
*p.s. doh, just realised i made this on my master branch, should be fine to merge though*