Changed template to accept any Map in order to allow Mutable maps to be
passed in