Modify input-* scripts for new layout.