Still working on the inputs, outputs list. Problem with the notequery functions, seems that assumption about ordering of notes returned form GetNotesList was wrong.