Bug fixes: crashing, cube intersection, transmission calculation