Start of CLI code.