Replaced command with subprocess