Implement setLimit