Remove Thread.sleep statement for debugging