Reorder functions in lso and add prototypes.