Reordered function calls