Remove commented-out code. Add separate addToPath function.