Added the printing methods.