Revisions to intermediate.js