Reordered function placement