He appeared in court and is facing a trial later this year