Script template functionality