Implemented the spawn for testing.