Add throwWarning() function for obvious purposes.