I thought of this too, but I'm afraid of the order it is executed then... should work fine when the various functions are small though