Thread.sleep was only for debugging - remove