Updated script for storing numbers also