Added preferences window.