Try harder to use lgamma