Defence code added,
return type changed to 'undefined'