Added debug wait to make sure eclipse attaches debugger appropriately