Cleaned up gzip method a bit