Changed location type from int to float