No globals in worker
Remove powerspectrum code
Minor: Insert a empty line
Move interp_position