  We extend Venkatesh's proof of the converse theorem for classical holomorphic
modular forms to arbitrary level and character. The method of proof, via the
Petersson trace formula, allows us to treat arbitrary degree 2 gamma factors of
Selberg class type.
