Began to implement the preferences window