Epicurus' philosophy is better characterized by the statement that peace of mind is required to experience maximum pleasure but is not equal to pleasure
This is good. This sheds light on things.
And so then:
Just as virtue is in the service of pleasure, so too peace of mind is in the service of pleasure.