Removed console logs and added a check to prevent crashing on no options or bad arguments