Added some common used function