Batch script created and optional nearest neighbour initialisation