Added compute input sequence average functionality