Add more reliable readProcess' function.