Adding cache-machine to models