Reorder functions definitions to appear before call instances.
Reorder functions definitions to appear before call instances some more.