Rest now compiles. Added duration method.