Adds bypass functionality to pagination (needs tidy up)