Adjusted the format of the conf dictionary
Fixed a bug (forgot to change reference after putting block in for loop)