Added a gateway script that works.