Changes made to split input into respective tree track and nonneg