Redesigned to be thread-safe, faster and more organized.