Added skeleton loops for matching template