Added function to get system total memory