Maybe us a reverse while loop here