Better way of handling inputs.