Support for limit option. 0 mean unlimited.