Added selecting tree feature.