Implemented projection calculation (partially)