Changed variable types. (int to unsigned, float to double)