He appeared in court on Friday