Modify some logic in Alliance API