I should really make term and terminal consistent names. Also, added test script.