Reorder the functions.

To the order as they are called.

Signed-off-by: Thiago Farina <tfarina@chromium.org>