Deprecations.
Is the Thread.sleep(1000) really necessary?