Added risk parameter.