Adding ID to scan results and newline to bad command