Pass hash-map to functions