Implement koba's custom stack.