Updated PageGateway to properly update Page table.