Write the pattern ourselves