First attempt to defs batch