The function had the wrong name & arguments. This commit fixes this. This in turn should also close issue #4997