Added real memory info and exceptions handling