Further simplify function.