Moved functions to global function object

Signed-off-by: Michel <info@1st-setup.nl>