Added some API endponts.