Replaced log with console