Added logging capabilities for error analysing issues.