And now, everything works. Just a matter of error checking, cleanup, and a few other details...