Added memcpy's to context class