Added console log outputs.