Solved the multiple inputs problem.