Syncronization and lagless sleep added.