Increased analysis accuracy, made it actually happen in some logical way. Works quite successfully on a sine wave, but needs more testing.