Changes on Main Activity

Changed from Thread.Sleep to Wait