Added HTML support and callback function option.