Added content mode code for stretch.