Updated to new stargate interface API

I had to do these changes to get it to work...