Detecting Changes in Slope and Level