Add common.sh and functions.