Changed examples to be compatible with use in highfrequency package.