Process manager added and some additional changes and fixes.