Quantization of Gravity and Finite Temperature Effects