Added logic for return process status and fixing lock state in the process. Preliminary start() option implemented.