Support for LIMIT

Fixes #4