Refactors on LLR query function. Now also calculating the variance for predictions and using this in Dyna to restart model