Allow to pass config as object