Attempting an alternate approach that hopefully will execute correctly from ruby