Fixed deprecated notice for gateway function.  Fixes Issue 297