Added format value method to use on frontend