Use printMSG function where necessary.