Added revoke function.