Machine-readable output from evaluate command.
Moved common re-structuring and computation operations to separate methods inside each command, so they can be reused across commands.