Added preliminary logging and error handling in case of no useable HALEC.