Export spawn as a property as well as a function.