This should not be an ``elseif``. The validity of the offset should still be checked