Serial effects are optimal