Added method to get the most recent registration id.