Added the relative coordinates to the primitives