Only the findOrphans method needs to be completed.

Also debug is necessary.