Initial auto invoke off commit

Might still need some fixes. I didn't tackle procedures yet. Only functions where the value was used. 

Signed-off-by: Bart de Boer <bartdeboer92@hotmail.com>