Added common functions file.