Adding preferences file