Added an overload to avoid unreferenced parameter warning (patch
from Sergiu Dotenco).