Fix seek position bug in exract code. Extraction mostly works now.