Add a makeshift gamma function.