clockwork + optimization.