Script to create slaves