Works except for same slope (I think)