Adding error logs