added settings preference. Not integrated