Recursive append_input works
Preparing inputs