Added profile preferences functionality.