Changed delay code in pose-teaching