Added input delay support.  Included tests.