Corrected errors -- like tools.count to len(tools)