Changed popen to .call