Add listmissingpatches function