Removed unused and insecure api