All I can say is that you will need to write this manually by hand. Especially with .LRN involved, your needs are different then mine.