Support for callback in custom render