Respect max_entries.

Use the syncer object attribute, not the function argument.