Removed dependency on zlib module