Complete compute_stack