Implemented token retrieval