Resource Investment in Competitive Markets: Technical Appendix.