Changed internal position format to double