Fixed my code to handle storing integers better.