Simplified function definition.