New functions to store and load integer values