Finished (but not tested) the scripts and classes.