Added some interfaces in temple.h