Added get and set for duration