Add beta extract-by-median