Spawn should be done. Added support functions as needed. Added headers for incomplete functions.