Fix logging issue and convert from colors to chalk.