Added a global reset signal to initialize flip-flops.