Blank space removed.
Major overhaul of the sub page query, split into separate methods, hopefully much cleaner.