Add error handling incase log is not present.