Fixed call to msg.newid should be msg.new_id