added sleep and new function for at commands