Some code cleanup: This sample will only demo inputs.