Added cookie store functionality for size and mode