Add support for gamma and exp/log functions