getCurrent and getOffset functions