Added option to echo logs to console