Added session cacheing.