Moved some logic. Can now create separate cubes.