Inline siblings traversal and remove debug statements when not required.