Working template with WaitConditions