Added support for float durations