Rewrote the current path searching for factories