Removed unused functions from AI