Periodic Boundary Condition now 3D ready.