Added var stream between client/server
Changed the way the mainframe() is getting called