Improve define() and child()