checkProcess method added. Still more handling needed