Integrating complex signals to control cell fate