Robot can now sleep