Renamed pag to mage.