Execute from any directory.
Clear access token before registering, otherwise registration fails.