Modification of function2 behavior
Merge pull request #1 from alrinach/devV3

Modification of function2 behavior