added in a more efficient sleep timer to avoid waiting