Functional in cmd prompt

Needs GUI, everything works well in the cmd prompt.