VISTA, Calif. (AP) _ A psychological evaluation was ordered for a Wisconsin drifter Tuesday, the same day a funeral was held for the 9-year-old boy he is accused of killing inside a public restroom.

Brandon Wilson, 20, appeared calm in court when Judge Timothy Casserly ordered that a psychologist determine whether Wilson understood the charges against him and was competent to stand trial.

Last week, Wilson admitted during his arraignment that he killed Matthew Cecchi inside a restroom at Oceanside Harbor on Nov. 14. His attorney had entered an innocent plea and he remains jailed without bail, charged with murder with a special circumstance of lying in wait and using a knife.

While Wilson's mother, uncle and aunt were in the courtroom in Southern California, Matthew's family was holding his funeral in Oroville, the boy's hometown near Sacramento.

Matthew was killed while visiting Oceanside, about 40 miles north of San Diego, for a family camping trip. His aunt had escorted him to a public restroom at the beach. She was waiting outside the door when a young man followed Matthew inside the restroom and then left. She got concerned and went inside the restroom to find that the boy's throat had been slashed. She later identified Wilson as the killer.

Wilson of St. Croix Falls, Wis., has drifted among several states in the West over the past two years. Police are investigating whether he is responsible for similar murders in those states and California.