Improve format, add limit parameter.