Remove unused code
Switch double to int