Extract implemented. Need to debug.