Rewrote non-windows Hunk functions