Added Class[_] argument to projections.
Added support for intermediate values in projections.