Added spacetime vector calculation