Updated to logger