Should be templated by the "double" type according to me.