Save/load integrals. Now move parameters outside of function!!
Save variables using function id
Save all based on function id