Added a NewParameters function to provide a wrapper around C.double