Added a utility functions file
Signed-off-by: Zhou Chang <achang.zhou@gmail.com>