Changed the way preferences are handled within the IDE.