In classical physics, the traditional way to handle dynamics is to work with initial value problems: Specifying all variables and their time-derivatives at a certain time will, together with the equations of motion, give the state of the system at any time. In this paper, it is questioned whether this is the right way to treat cosmology. The main reason is that cosmology, as opposed to almost all other parts of physics, deals with genuinely global problems. The main example in this paper will be the accelerating expansion. It is not claimed that the model studied here gives any kind of final explanation of this phenomenon. Nevertheless, it shows that what is commonly interpreted as the result of some dark energy, could instead be the result of a global condition for the universe. This model cannot be treated as a classical initial value problem. But an interesting additional property is that it can explain why the rate of acceleration now seems to be decreasing with time.