Adding hard pagebreak handling.