Use renamed function for storing cookies