Made cctube work again, fixed silly bugs