Added a utility file for common functions.