M protein is probably an endonuclease which directs cos cleavage. The Q, P and M proteins are needed to package DNA into proheads and for the conversion of proheads to capsids. To phage HP1 protein ORF19.