Adding hook to build registry.