Added onceUsingId method to Guard.