Made logic analyzer compatible with being run as a standalone program.