Added magic methods to Tokens class