Cleaned up sate copying.