Added output .m formatting