Midterm complete with tweaks