All the logging was moved to separate method, which invokes in visitToken