Generic function example.