added delay in example