Add safe value setter