Shortened addPath by imporivng code