Added cli debugging thanks to @dshafik