First simple batch implementation