Resolved #3. Logging is implemented.