Added support for specify the output delay in frames or milliseconds.