Using the native loggamma function