Take offset in concideration