Fixed some of the old functionality to return double instead of float.