Refactored function representation