// BUG: Done signal is asserted prematurely