Improved value assignment