Code is now parallel. Need to clean some horrible hacks.