Got it working by saving an array