Rewritten coordinates of movement to be consistent with the numpy arrays