Started integrating a preferences dialog