Replaced double with float