Changed initial assignment of doubles from 0 to 0.