Implement alternative solution to custom sections with functions (Enhancement #719)