Added the missing duration method from rest.