Changed Number type to double.
Removed console writes.