Wrote some pseudocode for seek