Added better error reporting when method is not found