Changing format of registration and setting TTL on keys