Added profiles, removed Thread.sleep from the tests