Updated child router with debugging messages, and cleaned up code