Fixed mutation and added negative integers.