Simplifying function generation.