Added api to format console output in tables