Added missed function for revoking access