Move spawning to start function.
Small refactor.
Fixed type specs.