Remove logs and fix an updateMessage emit to proper argument types