Query reqrite for IN() and resizing on xtra actions