SNiP routine