Allow passing in of a proxy