Updating processToken method