Create mini batch functions

That are sensitive to type and creates time delays mini batches if
needed