Individuals who are voluntarily being questioned by authorities have to be told when a lawyer is present, the Florida Supreme Court decided.

The court’s ruling overturned in part an appellate decision in the case of Michael McAdams, who voluntarily accompanied Hernando County Sheriff’s deputies during questions about the disappearance of his estranged wife, Lynda, and her boyfriend and co-worker, William Andrews, in 2009.