Removed duplicate pageinfo code