Made the from_value method external