Code organisation: Move functions to the end of the code

@ceysa75 You can use Stevens solution and then try this:

This should make it possible to develop in a script, getting the performance boost of a function and then being able to extract everything from the function easily.

Kind regards