utility.h is added for shared functionalities.