Cleaned the getInfo() function.