Added prettyprint for mode setting