Worked out cookie problems