Successful modular cosmology