Added getShortestDuration method