Moved Thread.sleep to original place and changed stacktrace to logger
reformatted the lines
Merge pull request #6 from BlueMonday/change

moved Thread.sleep, used Logger instead of Stacktrace, reformatted lines.