Added method for parsing Doubles