Converting stack variables to allocatables.