Take options as map.