Function calls save to global variables