Replaced #system with #exec for stability