Modified the code so that it returns a useful value to the operating system, which allows it to be integrated with other tools