Fixed a name of a function based on Jan's remarks.