Implement __invoke behavior