Adding back logging and fixing console command