Made example faster did custom code changes to S22.Imap