Reorder function prototypes