What is the role of a criminal lawyer in court?