Added dynamic scaling and pipe on/off.