Call foo function