Adds extract functionality.