Beginning of adding halfSlopes