Added check for using unordered maps