Setting up script to use with smt.