Added common.php for global variables, functions.