Integrates cpu loading library and adds some minor changes.