Fixed unupdated variable name
Simplified un-gzipping process