Added more preferences functionality.