Somewhat horrible. Need to build TAS as a library.