Take config as first argument