Add limit for entries read, fix #10

@mozkeeler Ready for review