Changed to pointers, working scope. TODO: do masking of vPortFree