Convert synchronous functions into node callback-style functions.