Implemented the limit option