DRY-er, added build_scorm subroutine.