Added the get_token method and added local variable to the set_token call.