Better formatting for extract function.