Support object as options