Build new functions API