First version of console script