Sorted out the rank issues.