Process.py related functionality and some issues/bugs fixes.