Initial version of main unit