Rearrange the functions order

Signed-off-by: Sven Haardiek <Sven@Haardiek.de>