Use variable for file extension