Auto-spawning functions.