Function simplification