Re-factored character api calls. Removed unused code.