Added console writing