Added basic saving of inputs.