Making some static methods instanced to avoid global state. Wordpress code standards updates. Passing/storing some arrays byref.