Added more changes to implement multitape machines