Use proper subprocess function