Fixed API calls and added an inspect method.