V 1.0 Data gateway script