Add before + after functions.