Imple a little sleep func