Added connect and tm scripts.