Added api hooks