Add cache and threads