Fix LLH min/max logic, added priors