Added methods to set and retrieve current number of uses and max number
of uses.