Added pretty print function.