Prepare template functions for async calls.