Initial version of backend part