Added support for providing input derivatives to CS. Related to ticket:2328