Edited pivot choosing