Made a self-noise version of the code using Sleeman's self-noise