Updated MYO script for better integration