Improves a function