Gather setting of input parameters in one single function.