Changed GetOffset / Offset to global method