Unzipping and reading templates