Changed to sh based version