Adding base of error logging