Added automatic unit spawning for testing purposes.