Reimplementation of SLP1 stuff