Add limit option. Closes #52