Converted blackoutproxy to use templates