Before it was inserting whenever function field is found but it should happend only in the case of function call.