as mentioned above please use Timer instead of Sleep.