Added Tree building via scope