setred function

General Interface for SETRED model