What is needed to allow photosynthesis to occur?