Created attr_reader for pre_order and made it always run from the root module result.