Moved batch functions to separated admin file.