Solved TSHPATH and SHPATH