Remove inadvertantly added changes to msg_delivered function