Implemented stack directory path tracker