Converting to Haxe3. This is the last version that will support Haxe2!