Even more variable cube function