Production companies, distributors and theatres play major roles in the box office cash flow. Production companies make licensing agreements with distributors, which in turn set release dates, pay for marketing and organize deals with theatres. The distribution rights could be leased or based on profit-sharing.