Fixed printing output plus formatting