Attempt to vectorize fung model.  May not work
Merged in vectorized fung model from fung-vec