Fixed Issue 4: Added the missing duration method from rest.