Add some framework for the 4d pipeline. Fugly.