Add logging feature. New version: 1.01