Adding hook for processing map file