Build up the keyframes programmatically