Bug fixed. Ready to start on the AJAX stuff.