RDmax is now a parameter (was previously set to 350)