Improve clearpages.