Added a warning to the constructor