Added support to generate multiple pages, to be future proof

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>