Added Haxe Client code