Changed the input_in_list() function definition to the find_input_node() one, and added forgotten semi-colons. Whoops.