Added functions for storing tokens