Changed a variable type from double to int.