Abstracted box_val a bit