Process hanging solved