Add support to set custom message and class via options