Rewrite in HaXe with HaXePunk.