- Added $offset parameter for the pop_* methods to improve performance.