Routines and drawings matching