Added logging around gateway stuff. Switched to version v1.0.8