Bug 959641: add logs and check for procFunction's usage