Accept functions as header and footer