Added rank selection option to experiment script