Added pretty print to core