Rename topDuration to minDuration and bottomDuration to maxDuration.