Thanks to your help in IRC, I've found what I was overlooking here and have amended the commit with the correct function call.