Added threaded execution of cube.py