Support API12,13. Big update.