Remove spawn function.