rev 140426A. We made an API and added sleep