Adding logging of input.