Removed dead code.
Added device revocation process.