Limit the number of entries

Fix #15