Make more use of DefineConsoleMethod

Resubmission of #887 with some fixes.
We need to add gui to default arguments