Allen improved the water closet by causing the water to spiral around the bowl when flushed. Around this time Bramah had another accident, and while laid up turned his mind to improving the water closet further. He patented his design in 1778, with a hinged flap instead of a sliding valve and a series of other tweaks to the design.