Rewrite limit and skip.