Added new tests. New methods for SystemProcessUtil and amended main loop code.