refactored token, started adding pause logic.