Track current path in a stack