basical progress function is implemented.