Added __invoke method to format values