This reverts commit 15a2032626. This is wrong - it is missing the proper include file, and the new function takes 4 arguments not 3.
15a2032626