Was getting undefined function error in patch #5