Clone from StageXL Sample