Rewrote parameter handling for relation to not store in tree. For #37