The California Supreme Court gave criminal defendants the nod to speak freely during mental competency exams without fear that their words would come back to haunt them later on at trial.

In Thursday’s majority opinion authored by Justice Joyce Kennard, four of the justices grappled with how to give defendants “blanket use immunity” without creating an incentive for them to tell outright lies during competency interviews.