Added an exception message when throwing NotSupportedException