Changed a couple copyFrom calls to transferFrom