Added getToken and setToken functionality