Better console logging, accept cli parameter