Add exceptions and sleeping time