Changed update from int to float