Move the overhead computation to another function.