Removed static variable from autoload per qiangxue's suggestion