Just like automated vehicles, robots and advanced AI will require new sets of laws to define the extent of owner liability and accountability. Creating these laws will require an important ethical discussion: Who is at fault when a robot misbehaves? According to author Jerry Kaplan, there is a precedent for creating codes and consequences for robots that do not apply to others. Take, for example, the fact that criminal charges can be brought against corporations rather than the people operating beneath the corporate shell. Similarly, we can develop laws that would allow robots and their programming to stand trial.