Added 'new' check in constructor