Modified the noty algorithm to use data from self