Encapsulate the child interval search into find_child_bounds() function.
Replace add_step with a placeholder expression.