Modified 634 to get inputs.