Added log and logInputs methods.