Do not count empty lines as unknown cmds.
Space stats.
Refactor.
Refactor error handling inline error handling.