Working initial flat version