Added median and nicer logging. UI improvements.