Refactor helper function,
Add import
Add startFrom seeking