Added outptMsg function