Pretty much done with this code now.