Work on gatherInputValues() function