Replaced system call with Open3