Add getDuration and fix setRunTime