Added and fixed uart/vm interface logic