Using the Popen approach