Added functionality to inputs.