Switching over to double from int. Not sure if that's the best choice.