Missing piece of code from lib