Reverting memcpy()
Global var substitution is evil