Made cookie usage optional via checkbox