Script separated into 3 files, common object added