Updated to use synchronous shell script