Ported cube and other needed classes.