Make runloop running by periods