Added common functions.