Fix page boundary hit detection
Some section, sequence templating