Thinking in code. Changing signature tree. Not flexible enough though.