Differentiate functions from promises