Corrected msg import and added terminal usage