Added functionality similar to that of the JSJukebox assignment.