Added projection code