Implemented plot functions and some other stuff on the midtime