Now works with parameters of type double.