Moving survey analysis stuff to a new file.