First draft. Still need panel plot and clean up.