Added functionality to handle walking subcacuses.