Clean out unused code; uncomment input initialization.