Including Final Code For Signal and Limit Setting