Added require tree functionality