Now ending session used only for querying because it causes error with constant querying
Added weighted CTR calc