Batch Function With Parameters