Added conversion of values to integer