Adding extra function call to invoke error