Adjusted way of obtaining inputs and values