Modified treedply to take in call inputs