Move smearing code to external function