Reorder function declarations