Simplify function definition