Changed it to give pages by reading files instead of doing so explicitly