Added convenience method for setting map