Fixed the longstanding slowness bug finally.