Changed double variables to int