Added function(){} to parameters inputted for bad inputs