Added function to load program data.