Insertion of the Wildcards and the flush function